<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" />
	<title>字符串搜索</title>
	<script src="../../src/BruteForceSearch.js"></script>
	<script src="../../src/BoyerMooreSearch.js"></script>
</head>
<body>
	<script>
		var srcText = 'HERE IS A SIMPLE EXAMPLE',
				pat = 'EXAMPLE',
			matchIndex;
		matchIndex = BruteForceSearch(srcText, pat);
		matchIndex = BoyerMooreSearch(srcText, pat);
	</script>
</body>
</html>